<template>
  <div class="page2-comp-ct">
    <mt-header title="page2" fixed>
        <mt-button icon="back" @click="$router.back(-1)" slot="left">返回</mt-button>
    </mt-header>
    参数:{{param}}
    <br>
    <button @click="back()">back</button>
  </div>
</template>
<script>
export default {
  name: "page2",
  data(){
      return {
        // param:this.$route.query.name
        param:this.$route.params.name
      }
  },
  methods: {
    back: function() {
      // this.$router.back();
      
      document.dispatchEvent(new Event('backbutton'))
    }
  }
};
</script>
<style lang="scss" scoped>
.page2-comp-ct {
}
</style>
